home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 April / PCWorld_2008-04_cd.bin / v cisle / updatestar / UpdateStar_Web_ENU.msi / StartXsl < prev    next >
Extensible Markup Language  |  2007-12-14  |  26KB  |  912 lines

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  3.  
  4. <xsl:template match="start/stylepath"></xsl:template>
  5. <xsl:template match="start/language"></xsl:template>
  6. <xsl:template match="start/largefont"></xsl:template>
  7.  
  8.  
  9. <xsl:variable name="language"><xsl:value-of select="start/language"/></xsl:variable>
  10. <xsl:variable name="largefont"><xsl:value-of select="start/largefont"/></xsl:variable>
  11. <xsl:variable name="stylepathorig"><xsl:value-of select="start/stylepath"/></xsl:variable>
  12. <xsl:variable name="stylepath"><xsl:copy-of select="$stylepathorig"/>/Img/</xsl:variable>
  13. <xsl:variable name="apps"><xsl:value-of select="start/data/countings/apps"/></xsl:variable>
  14. <xsl:variable name="updates"><xsl:value-of select="start/data/countings/updates"/></xsl:variable>
  15. <xsl:variable name="ratio"><xsl:value-of select="start/data/countings/apps_ratio"/></xsl:variable>
  16. <xsl:variable name="lastupdate"><xsl:value-of select="start/data/lastupdate"/></xsl:variable>
  17. <xsl:variable name="build"><xsl:value-of select="start/data/build"/></xsl:variable>
  18. <xsl:variable name="myupdatelist"><xsl:value-of select="start/data/updatelist"/></xsl:variable>
  19.  
  20.  
  21.  
  22.  
  23. <xsl:template match="start/data">
  24.  
  25.  
  26. <html>
  27.     <head>
  28. <META HTTP-EQUIV="MSThemeCompatible" CONTENT="YES"/>
  29.  
  30. <xsl:element name="link">
  31.     <xsl:attribute name="href"><xsl:copy-of select="$stylepathorig"/>/style.css</xsl:attribute>
  32.     <xsl:attribute name="rel">stylesheet</xsl:attribute>
  33.     <xsl:attribute name="type">text/css</xsl:attribute>
  34. </xsl:element>
  35.  
  36. <xsl:if test="$largefont='yes'">
  37.     <style type="text/css">
  38.         td     {
  39.             font-size: 14px;
  40.         }
  41.         
  42.         td.desc{
  43.             font-size:13px;
  44.         }
  45.         td.normal{
  46.             font-size:13px;
  47.         }
  48.         td.normalbig{
  49.             font-size:13px;
  50.         }
  51.         a.sublink{
  52.             font-size:11px;
  53.             font-weight:bold;
  54.         }
  55.     </style>
  56. </xsl:if>
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67. <script type="text/javascript">
  68.  
  69. <xsl:text disable-output-escaping="yes"><![CDATA[
  70. <!--
  71.  
  72. function UpdatestarWindowWinWeight () {
  73.   if (window.innerWidth) {
  74.     return window.innerWidth;
  75.   } else if (document.body && document.body.offsetWidth) {
  76.     return document.body.offsetWidth;
  77.   } else {
  78.     return 0;
  79.   }
  80. }
  81.  
  82. function UpdatestarWindowWinHeight () {
  83.   if (window.innerHeight) {
  84.     return window.innerHeight;
  85.   } else if (document.body && document.body.offsetHeight) {
  86.     return document.body.offsetHeight;
  87.   } else {
  88.     return 0;
  89.   }
  90. }
  91.  
  92.  
  93. function neuAufbau () {
  94.     WinWeight = UpdatestarWindowWinWeight();
  95.     WinHeight = UpdatestarWindowWinHeight();
  96.     
  97.     //count rows to display at once
  98.     showelements = Math.round(((WinHeight) - 300) / 23);
  99.     if(showelements < minimalshow) showelements = minimalshow;
  100.  
  101.     pages = Math.ceil(updatescount / showelements) - 1;
  102.  
  103.     displayTable();
  104. }
  105.  
  106.  
  107. function hideElement (elementId) {
  108.     var element;
  109.     if (document.all)
  110.     element = document.all[elementId];
  111.     else if (document.getElementById)
  112.     element = document.getElementById(elementId);
  113.     if (element && element.style)
  114.     element.style.display = 'none';
  115. }
  116.  
  117.  
  118. function showElement (elementId) {
  119.     var element;
  120.     if (document.all)
  121.     element = document.all[elementId];
  122.     else if (document.getElementById)
  123.     element = document.getElementById(elementId);
  124.     if (element && element.style)
  125.     element.style.display = '';
  126. }
  127.  
  128. function nextPage() {
  129.     if(page < pages){
  130.         page++;
  131.         displayTable();
  132.     }
  133. }
  134.  
  135. function prevPage() {
  136.     if(page > 0){
  137.         page--;
  138.         displayTable();
  139.     }
  140. }
  141.  
  142. function displayTable() {
  143.     rowstoshow = ((showelements * page)+ showelements );
  144.  
  145.     for (var i = 0; i <= updatescount; i++){    //reset all
  146.         if(document.getElementById("update_" + i))document.getElementById("update_" + i).style.display="none";
  147.     }
  148.     
  149.     for (var i = (showelements * page)+1; i <= rowstoshow; i++){    //select current
  150.         if(document.getElementById("update_" + i))document.getElementById("update_" + i).style.display="";
  151.     }
  152.     showinfo();
  153. }
  154.  
  155.  
  156. function showinfo(){
  157.     if(page == 0){
  158.         if(document.getElementById("prevpage"))document.getElementById("prevpage").style.visibility="hidden";
  159.     } else{
  160.         if(document.getElementById("prevpage"))document.getElementById("prevpage").style.visibility="visible";
  161.     }
  162.     
  163.     if(page == pages){
  164.         if(document.getElementById("nextpage"))document.getElementById("nextpage").style.visibility="hidden";
  165.     } else{
  166.         if(document.getElementById("nextpage"))document.getElementById("nextpage").style.visibility="visible";
  167.     }
  168.     
  169.     document.getElementById("infobox2").innerHTML= (page+1) + "/" + (pages+1);
  170.  
  171.     if(pages == -1){
  172.         document.getElementById("navitable").style.display="none";
  173.     }else {
  174.         document.getElementById("navitable").style.display="";
  175.     }
  176. }
  177.  
  178.  
  179. //-->
  180. ]]></xsl:text>
  181.  
  182. </script>
  183.  
  184.  
  185.  
  186.  
  187.  
  188. <!--
  189. <xsl:element name="SCRIPT">
  190.     <xsl:attribute name="language">JavaScript</xsl:attribute>
  191.     <xsl:attribute name="SRC"><xsl:copy-of select="$stylepathorig"/>\<xsl:copy-of select="$language"/>.js</xsl:attribute>
  192. </xsl:element>
  193.  
  194.  
  195. <xsl:element name="SCRIPT">
  196.     <xsl:attribute name="language">JavaScript</xsl:attribute>
  197.     <xsl:attribute name="SRC"><xsl:copy-of select="$stylepathorig"/>\slang.js</xsl:attribute>
  198. </xsl:element>
  199. -->
  200.  
  201.  
  202.  
  203. <xsl:element name="SCRIPT">
  204.     <xsl:attribute name="language">JavaScript</xsl:attribute>
  205. function translate(){
  206.     for (newalt in sfields) {
  207.         if(document.getElementById(newalt) ){
  208.             if(document.getElementById(newalt).alt){//image
  209.                 document.getElementById(newalt).alt=sfields[newalt];
  210.             }else if(document.getElementById(newalt).value == ""){//input
  211.                 document.getElementById(newalt).value=sfields[newalt];
  212.             }else{
  213.                 document.getElementById(newalt).innerHTML=sfields[newalt];//default div element
  214.             }
  215.         }
  216.  
  217.             if(document.getElementById(newalt + "_" + 0)){
  218.                 document.getElementById(newalt + "_" + 0).innerHTML=sfields[newalt];
  219.             }
  220.             
  221.             if(document.getElementById(newalt + "_" + 1)){
  222.                 document.getElementById(newalt + "_" + 1).innerHTML=sfields[newalt];
  223.             }
  224.             
  225.             if(document.getElementById(newalt + "_" + 2)){
  226.                 document.getElementById(newalt + "_" + 2).innerHTML=sfields[newalt];
  227.             }
  228.             
  229.             if(document.getElementById(newalt + "_" + 3)){
  230.                 document.getElementById(newalt + "_" + 3).innerHTML=sfields[newalt];
  231.             }
  232.             
  233.             if(document.getElementById(newalt + "_" + 4)){
  234.                 document.getElementById(newalt + "_" + 4).innerHTML=sfields[newalt];
  235.             }
  236.             
  237.             if(document.getElementById(newalt + "_" + 5)){
  238.                 document.getElementById(newalt + "_" + 5).innerHTML=sfields[newalt];
  239.             }
  240.                 
  241.         }
  242. }
  243.  
  244.  
  245. var sfields = new Array();
  246.  
  247. //start
  248. sfields["str_noupdate"]        = "No Updates Available";
  249. sfields["str_yesupdate"]    = "Updates Available!";
  250. sfields["str_lastscan"]        = "Last Update Scan:";
  251. sfields["str_foundprogs"]    = "Programs found:";
  252. sfields["str_foundupdates"]    = "Updates found:";
  253. sfields["searchbutton"]        = "Search for Updates";
  254. sfields["listbutton"]        = "Program List";
  255. sfields["str_availupdates"]    = "Updates Available:";
  256. sfields["str_availvers"]    = "Version:";
  257. sfields["str_availnews"]    = "News:";
  258.  
  259.  
  260. //details
  261. sfields["str_pname"]        = "Product name:";
  262. sfields["str_publisher"]    = "Publisher:";
  263. sfields["str_category"]     = "Category:";
  264. sfields["str_license"]         = "License:";
  265. sfields["str_irequirements"] = "System Requirements";
  266. sfields["str_iversion"]     = "Installed Version:";
  267. sfields["str_uversion"]     = "Current Version:";
  268. sfields["str_management"]     = "Administration:";
  269. sfields["str_info"]         = "Info:";
  270. sfields["str_sdesc"]         = "Short description:";
  271. sfields["str_desc"]         = "Description:";
  272. sfields["str_download"]     = "Download";
  273. sfields["str_buynow"]         = "Buy now";
  274. sfields["str_buyfrom"]         = "from ";
  275. sfields["str_errlink"]         = "incorrect link";
  276. sfields["str_sendupdate"]     = "Send Update";
  277. sfields["sendupdate"]         = "Send Update";
  278. sfields["alt_uninstall"]    = "Uninstall ";
  279. sfields["alt_repair"]         = "Repair";
  280. sfields["alt_modify"]         = "Modify";
  281.  
  282. sfields["str_newstitle"]    = "Title";
  283. sfields["str_newsdata"]     = "Date";
  284.  
  285. </xsl:element>
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292. <xsl:if test="$language='1031'">
  293.     <script type="text/javascript">
  294.     
  295. //start
  296. sfields["str_noupdate"]        = "Keine Updates verfⁿgbar";
  297. sfields["str_yesupdate"]    = "Updates verfⁿgbar!";
  298. sfields["str_lastscan"]        = "Letzter Update-Scan:";
  299. sfields["str_foundprogs"]    = "Gefundene Programme:";
  300. sfields["str_foundupdates"]    = "Gefundene Updates:";
  301. sfields["searchbutton"]        = "Updates suchen";
  302. sfields["listbutton"]        = "Programmliste";
  303. sfields["str_availupdates"]    = "Verfⁿgbare Updates:";
  304. sfields["str_availvers"]    = "Aktuelle Version:";
  305. sfields["str_availnews"]    = "Verfⁿgbare Meldungen:";
  306.  
  307.  
  308. //details
  309. sfields["str_pname"]        = "Produktname:";
  310. sfields["str_publisher"]    = "Hersteller:";
  311. sfields["str_category"]     = "Produktkategorie:";
  312. sfields["str_irequirements"] = "Systemanforderungen:";
  313. sfields["str_license"]         = "Lizenz:";
  314. sfields["str_iversion"]     = "Installierte Version:";
  315. sfields["str_uversion"]     = "Aktuelle Version:";
  316. sfields["str_management"]     = "Verwaltung:";
  317. sfields["str_info"]         = "Info:";
  318. sfields["str_sdesc"]         = "Kurze Beschreibung:";
  319. sfields["str_desc"]         = "Beschreibung:";
  320. sfields["str_download"]     = "Download";
  321. sfields["str_buynow"]         = "Jetzt kaufen";
  322. sfields["str_buyfrom"]         = "von ";
  323. sfields["str_errlink"]         = "Link ist falsch";
  324. sfields["str_sendupdate"]     = "Update senden";
  325. sfields["sendupdate"]         = "Update senden";
  326. sfields["alt_uninstall"]    = "Deinstallieren ";
  327. sfields["alt_repair"]         = "Reparieren";
  328. sfields["alt_modify"]         = "─ndern";
  329.  
  330. //news
  331. sfields["str_newstitle"]    = "Titel";
  332. sfields["str_newsdata"]     = "Datum";
  333.  
  334.     </script>
  335. </xsl:if>
  336.  
  337.  
  338.  
  339.  
  340.  
  341.  
  342.  
  343.  
  344. </head>
  345.  
  346. <body onload="if(window.translate)translate();">
  347.  
  348.  
  349.  
  350.  
  351.  
  352. <form name="form1" method="post" action="" id="form1">
  353.     <div>
  354.         <input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET" value="" />
  355.         <input type="hidden" name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" />
  356.     </div>
  357.     
  358.     <script type="text/javascript">
  359.     <!--
  360.         var theForm = document.forms['form1'];
  361.         if (!theForm) { 
  362.       theForm = document.form1; 
  363.     }
  364.         function __doPostBack(eventTarget, eventArgument) {
  365.             if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
  366.                 theForm.__EVENTTARGET.value = eventTarget;
  367.                 theForm.__EVENTARGUMENT.value = eventArgument;
  368.                 theForm.submit(); 
  369.             }
  370.         }
  371.     // -->
  372.  
  373.         function Close() { 
  374.             if (window.external && window.external.StartClose) { 
  375.                 window.external.StartClose(); 
  376.             } 
  377.             return false;
  378.         }
  379.         var closebt = document.getElementById("StartPage_CloseButton");
  380.         if (closebt != null) { 
  381.             closebt.onclick = Close; 
  382.         }
  383. </script>
  384.     
  385.     
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.     
  393. <!-- ERSTE TABELLE OBEN LINKS  -->    
  394. <table border="0" cellpadding="0" cellspacing="0" width="100%" height="100%">
  395.     <tr>
  396.         <td style="padding-left: 10px; padding-right:10px">
  397.             <table border="0" cellpadding="0" cellspacing="0" width="100%" >
  398.                 <tr>
  399.                     <xsl:if test="$myupdatelist=''">
  400.                         <td class="status_greenl"><div id="str_noupdate">.</div></td>
  401.                         <td class="status_greenr">
  402.                             <xsl:element name="img">
  403.                                 <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/tbl/shim.gif</xsl:attribute>
  404.                                 <xsl:attribute name="width">19</xsl:attribute>
  405.                                 <xsl:attribute name="height">23</xsl:attribute>
  406.                             </xsl:element>
  407.                         </td>
  408.                     </xsl:if>
  409.                     <xsl:if test="not($myupdatelist='')">
  410.                         <td class="status_redl"><div id="str_yesupdate">.</div></td>
  411.                         <td class="status_redr">
  412.                             <xsl:element name="img">
  413.                                 <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/tbl/shim.gif</xsl:attribute>
  414.                                 <xsl:attribute name="width">19</xsl:attribute>
  415.                                 <xsl:attribute name="height">23</xsl:attribute>
  416.                             </xsl:element>
  417.                         </td>
  418.                 </xsl:if>
  419.                 
  420.                 </tr>
  421.             </table>
  422.         </td>
  423.     </tr>
  424.     <tr>
  425.         <td valign="top" class="bgpic_unused">
  426.             <table border="0" cellpadding="10" cellspacing="0" width="100%" >
  427.             <tr>
  428.                 <td width="50%" valign="top" colspan="2">
  429.                     <table border="0" cellpadding="0" cellspacing="0" width="100%">
  430.                         <tr>
  431.                             <td class="tl">
  432.                                 <xsl:element name="img">
  433.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/tbl/shim.gif</xsl:attribute>
  434.                                     <xsl:attribute name="width">2</xsl:attribute>
  435.                                     <xsl:attribute name="height">2</xsl:attribute>
  436.                                 </xsl:element>
  437.                             </td><td class="tm" width="100%"></td>
  438.                             <td class="tr">
  439.                                 <xsl:element name="img">
  440.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/tbl/shim.gif</xsl:attribute>
  441.                                     <xsl:attribute name="width">2</xsl:attribute>
  442.                                     <xsl:attribute name="height">2</xsl:attribute>
  443.                                 </xsl:element>
  444.                             </td>
  445.                         </tr>
  446.                         <tr>
  447.                             <td class="ml"></td>
  448.                             <td width="100%" class="wbox">
  449.  
  450. <table border="0" cellpadding="0" cellspacing="0"  width="100%">
  451.     <tr>
  452.         <td valign="top" style="padding-right:15px" width="20">
  453.             <xsl:element name="img"><xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/xml_scan.gif</xsl:attribute></xsl:element>
  454.         </td>
  455.         <td valign="top" width="250">
  456.             <table border="0" cellpadding="0" cellspacing="0" width="100%">
  457.                 <tr>
  458.                   <td colspan="2" valign="top" style="padding-bottom:20px">
  459.                         <table border="0" width="100%" cellpadding="0" cellspacing="0" >
  460.                             <tr>
  461.                                 <td class="normalbig"><div id="str_lastscan">.</div></td>
  462.                             </tr>
  463.                             <tr>
  464.                                 <td class="blue" valign="top"><b><xsl:copy-of select="$lastupdate"/></b></td>
  465.                             </tr>
  466.                         </table>
  467.                     </td>
  468.                 </tr>
  469.                 <tr>
  470.                     <td colspan="2" valign="top">
  471.                         <table border="0" width="100%" cellpadding="0" cellspacing="0">
  472.                             <tr>
  473.                                 <td class="normalbig"><div id="str_foundprogs">.</div></td>
  474.                                 <td class="green"><b><xsl:copy-of select="$apps"/></b></td>
  475.                                 <td rowspan="2">
  476.                                     <!--chart-->
  477.                                 </td>
  478.                             </tr>
  479.                             <tr>
  480.                                 <td class="normalbig"><div id="str_foundupdates">.</div></td>
  481.                                 <td class="red"><b><xsl:copy-of select="$updates"/></b></td>
  482.                             </tr>
  483.                         </table>
  484.                     </td>
  485.                 </tr>
  486.                 <tr>
  487.                     <td colspan="2">
  488.                         <br/>
  489.                         <xsl:element name="img">
  490.                             <xsl:attribute name="width">250</xsl:attribute>
  491.                             <xsl:attribute name="height">1</xsl:attribute>
  492.                             <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/shim.gif</xsl:attribute>
  493.                         </xsl:element>
  494.                     </td>
  495.                 </tr>
  496.             </table>
  497.         </td>
  498.         
  499.         <td valign="top">
  500.             <xsl:element name="img">
  501.                 <xsl:attribute name="src">
  502.                 <xsl:copy-of select="$stylepath"/>/chart/<xsl:copy-of select="$ratio"/>.png
  503.                 </xsl:attribute>
  504.                 <xsl:attribute name="style">margin-left:15px; margin-right:15px; margin-top:15px;</xsl:attribute>
  505.             </xsl:element>
  506.         </td>
  507.         
  508.         
  509.         <td>
  510.             <table border="0" cellpadding="5" cellspacing="0" >
  511.                 <tr>
  512.                     <td>
  513.                         
  514.                         <table border="0" cellpadding="0" cellspacing="0">
  515.                             <tr>
  516.                                 <td>
  517.                                     <xsl:element name="img">
  518.                                         <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>buttons/start_left.gif</xsl:attribute>
  519.                                     </xsl:element>
  520.                                 </td>
  521.                                 <td class="startm">
  522.                                 <a href="#" class="buttonstart" onclick="window.external.StartScan();" id="searchbutton">.</a></td>
  523.                                 <td>
  524.                                     <xsl:element name="img">
  525.                                         <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>buttons/start_right.gif</xsl:attribute>
  526.                                     </xsl:element>
  527.                                 </td>
  528.                             </tr>
  529.                         </table>
  530.                 
  531.                     </td>
  532.                 </tr>
  533.                 <tr>
  534.                     <td>
  535.                         <table border="0" cellpadding="0" cellspacing="0">
  536.                             <tr>
  537.                                 <td>
  538.                                     <xsl:element name="img">
  539.                                         <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>buttons/start_left.gif</xsl:attribute>
  540.                                     </xsl:element>
  541.                                 </td>
  542.                                 <td class="startm">
  543.                                 <a href="#" class="buttonstart" onclick="window.external.StartClose();" id="listbutton">.</a></td>
  544.                                 <td>
  545.                                     <xsl:element name="img">
  546.                                         <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>buttons/start_right.gif</xsl:attribute>
  547.                                     </xsl:element>
  548.                                 </td>
  549.                             </tr>
  550.                         </table>
  551.                         
  552.                         
  553.                     </td>
  554.  
  555.                 </tr>
  556.             </table>
  557.         </td>
  558.         
  559.         
  560.  
  561.         
  562.         
  563.         
  564.         
  565.         <td valign="top">
  566.             <xsl:element name="img">
  567.             <xsl:attribute name="border">0</xsl:attribute>
  568.             <xsl:attribute name="align">right</xsl:attribute>
  569.             <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>startstar.png</xsl:attribute></xsl:element>
  570.         </td>
  571.     </tr>
  572. </table>
  573.  
  574.                             </td>
  575.                             <td class="mr"></td>
  576.                         </tr>
  577.                         <tr>
  578.                             <td class="bl">
  579.                                 <xsl:element name="img">
  580.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  581.                                     <xsl:attribute name="width">2</xsl:attribute>
  582.                                     <xsl:attribute name="height">2</xsl:attribute>
  583.                                 </xsl:element>
  584.                             </td>
  585.                             <td class="bm"></td>
  586.                             <td class="br">
  587.                                 <xsl:element name="img">
  588.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  589.                                     <xsl:attribute name="width">2</xsl:attribute>
  590.                                     <xsl:attribute name="height">2</xsl:attribute>
  591.                                 </xsl:element>
  592.                             </td>
  593.                         </tr>                    
  594.                     </table>
  595.                 </td>
  596.  
  597.             </tr>
  598.             <tr>
  599.                 <td width="50%" valign="top">
  600.                 
  601. <!-- Dritte TABELLE UNTEN LINKS-->    
  602. <table border="0" cellpadding="0" cellspacing="0" width="100%" height="200">
  603.                         <tr>
  604.                             <td class="tl">
  605.                                 <xsl:element name="img">
  606.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  607.                                     <xsl:attribute name="width">2</xsl:attribute>
  608.                                     <xsl:attribute name="height">2</xsl:attribute>
  609.                                 </xsl:element>
  610.                             </td><td class="tm" width="100%"></td>
  611.                             <td class="tr">
  612.                                 <xsl:element name="img">
  613.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  614.                                     <xsl:attribute name="width">2</xsl:attribute>
  615.                                     <xsl:attribute name="height">2</xsl:attribute>
  616.                                 </xsl:element>
  617.                             </td>
  618.                         </tr>
  619.                         <tr>
  620.                             <td class="ml"></td>
  621.                             <td width="100%" height="100%" class="wbox">
  622.  
  623. <table border="0" cellpadding="0" cellspacing="0" height="200" width="100%">
  624.     <tr>
  625.         <td valign="top" style="padding-right:15px">
  626.             <xsl:element name="img"><xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/xml_ok.gif</xsl:attribute></xsl:element>
  627.         </td>
  628.         <td valign="top" width="100%">
  629.             <table border="0" cellpadding="2" cellspacing="0" width="100%">
  630.                 <tr>
  631.                     <td width="80%" class="normalbig" style="white-space: nowrap;"><div id="str_availupdates">.</div></td>
  632.                     <td class="normalbig" style="white-space: nowrap;padding-right:10px;"><div id="str_availvers">.</div></td>
  633.                 </tr>
  634.                 
  635.                 <xsl:for-each select="updatelist">
  636.                     <xsl:apply-templates/>
  637.                 </xsl:for-each>
  638.                 
  639.                 <tr>
  640.                     <td colspan="2" style="text-align:center; padding-top:10px;">
  641.                     
  642.                     
  643.                     
  644.                 <table border="0" cellpadding="0" cellspacing="0" id="navitable">
  645.                     <tr>
  646.                         <td>
  647.                     <div id="prevpage" style="display:inline;"><a href="javascript: prevPage();" >
  648.                         <xsl:element name="img">
  649.                             <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/buttons/us_snav_backward.gif</xsl:attribute>
  650.                             <xsl:attribute name="border">0</xsl:attribute>
  651.                         </xsl:element>
  652.                     </a>
  653.                     </div>
  654.                         </td>
  655.                         <td width="50" align="center"><div id="infobox2" style="text-align:center;">.</div></td>
  656.                         <td>
  657.                     <div id="nextpage" style="display:inline;"><a href="javascript: nextPage();">
  658.                         <xsl:element name="img">
  659.                             <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/buttons/us_snav_forward.gif</xsl:attribute>
  660.                             <xsl:attribute name="border">0</xsl:attribute>
  661.                         </xsl:element>
  662.                     </a>
  663.                     </div>
  664.                         </td>
  665.                     </tr>
  666.                 </table>
  667.                 
  668.                 
  669.                 
  670.                 
  671.                 
  672.  
  673.                     </td>
  674.                 </tr>
  675.                 
  676.  
  677.                 
  678.             </table>
  679.         </td>
  680.         <td valign="top"></td>
  681.     </tr>
  682. </table>
  683.  
  684.                             </td>
  685.                             <td class="mr"></td>
  686.                         </tr>
  687.                         <tr>
  688.                             <td class="bl">
  689.                                 <xsl:element name="img">
  690.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  691.                                     <xsl:attribute name="width">2</xsl:attribute>
  692.                                     <xsl:attribute name="height">2</xsl:attribute>
  693.                                 </xsl:element>
  694.                             </td>
  695.                             <td class="bm"></td>
  696.                             <td class="br">
  697.                                 <xsl:element name="img">
  698.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  699.                                     <xsl:attribute name="width">2</xsl:attribute>
  700.                                     <xsl:attribute name="height">2</xsl:attribute>
  701.                                 </xsl:element>
  702.                             </td>
  703.                         </tr>                    
  704.                     </table>
  705.                 
  706.                 </td>
  707.                 <td width="50%" valign="top">
  708.                 
  709. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  710.                         <tr>
  711.                             <td class="tl">
  712.                                 <xsl:element name="img">
  713.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  714.                                     <xsl:attribute name="width">2</xsl:attribute>
  715.                                     <xsl:attribute name="height">2</xsl:attribute>
  716.                                 </xsl:element>
  717.                             </td><td class="tm" width="100%"></td>
  718.                             <td class="tr">
  719.                                 <xsl:element name="img">
  720.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  721.                                     <xsl:attribute name="width">2</xsl:attribute>
  722.                                     <xsl:attribute name="height">2</xsl:attribute>
  723.                                 </xsl:element>
  724.                             </td>
  725.                         </tr>
  726.                         <tr>
  727.                             <td class="ml"></td>
  728.                             <td width="100%" class="wbox">
  729.  
  730. <table border="0" cellpadding="0" cellspacing="0" height="200" width="100%">
  731.     <tr>
  732.         <td valign="top" style="padding-right:15px">
  733.             <xsl:element name="img"><xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/xml_news.gif</xsl:attribute></xsl:element>
  734.         </td>
  735.         <td valign="top" width="100%">
  736.             <table border="0" cellpadding="0" cellspacing="0" width="100%">
  737.                 <tr>
  738.                     <td width="100%" class="normalbig"><nobr><div id="str_availnews">.</div></nobr></td>
  739.                 </tr>
  740.                 <tr>
  741.                     <td>
  742.                         <xsl:for-each select="newslist">
  743.                             <xsl:apply-templates/>
  744.                         </xsl:for-each>
  745.                     </td>
  746.                 </tr>
  747.             </table>
  748.         </td>
  749.         <td valign="top"></td>
  750.     </tr>
  751. </table>
  752.                             
  753.                             </td>
  754.                             <td class="mr"></td>
  755.                         </tr>
  756.                         <tr>
  757.                             <td class="bl">
  758.                                 <xsl:element name="img">
  759.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  760.                                     <xsl:attribute name="width">2</xsl:attribute>
  761.                                     <xsl:attribute name="height">2</xsl:attribute>
  762.                                 </xsl:element>
  763.                             </td>
  764.                             <td class="bm"></td>
  765.                             <td class="br">
  766.                                 <xsl:element name="img">
  767.                                     <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  768.                                     <xsl:attribute name="width">2</xsl:attribute>
  769.                                     <xsl:attribute name="height">2</xsl:attribute>
  770.                                 </xsl:element>
  771.                             </td>
  772.                         </tr>                    
  773.                     </table>
  774.                 
  775.                 </td>
  776.             </tr>
  777.         </table>
  778.         <xsl:element name="img">
  779.             <xsl:attribute name="src"><xsl:copy-of select="$stylepath"/>/img/tbl/shim.gif</xsl:attribute>
  780.             <xsl:attribute name="width">1</xsl:attribute>
  781.             <xsl:attribute name="height">1</xsl:attribute>
  782.         </xsl:element>
  783.     </td></tr>
  784. </table>
  785.  
  786.  
  787.  
  788.  
  789.  
  790.  
  791.  
  792.  
  793.  
  794.  
  795.  
  796.  
  797. </form>
  798.  
  799.  
  800.  
  801.  
  802. <script type="text/javascript">
  803.  
  804. <xsl:text disable-output-escaping="yes"><![CDATA[
  805. <!--
  806.  
  807. var minimalshow = 5;
  808. var page = 0;
  809. var updatescount = 0;
  810.  
  811.  
  812. //check how much updates available
  813. for (var i = 0; i <= 1000; i++){
  814.     if(document.getElementById("update_" + i)){
  815.         updatescount++;
  816.     }
  817. }
  818.  
  819.  
  820. if (!window.WinWeight && document.body && document.body.offsetWidth) {
  821.   window.onresize = neuAufbau;
  822.   WinWeight = UpdatestarWindowWinWeight();
  823.   WinHeight = UpdatestarWindowWinHeight();
  824. }
  825.  
  826. neuAufbau();
  827.  
  828. //-->
  829. ]]></xsl:text>
  830.  
  831. </script>
  832.  
  833.  
  834. </body></html>
  835. </xsl:template>
  836.  
  837.  
  838.  
  839.  
  840.  
  841.  
  842.  
  843.  
  844. <xsl:template match="news">
  845.     <table border="0" width="100%">
  846.         <tr>
  847.             <td width="100%" class="normalbig" valign="top">
  848.                 <xsl:element name="div">
  849.                     <xsl:attribute name="class"><xsl:value-of select="type" /></xsl:attribute>
  850.                     <xsl:attribute name="style">margin-left:-1px</xsl:attribute>                    
  851.                     <xsl:element name="a">
  852.                         <xsl:attribute name="href">javascript:window.external.OpenNews(<xsl:value-of select="id" />);</xsl:attribute>
  853.                         <xsl:attribute name="alt"><xsl:value-of select="url" /></xsl:attribute>
  854.                         <xsl:value-of select="title" />
  855.                     </xsl:element>
  856.                 </xsl:element>
  857.                 
  858.             </td>
  859.         </tr>
  860.     </table>
  861. </xsl:template>
  862.  
  863.  
  864.  
  865. <xsl:template match="update">
  866.     <xsl:element name="tr">
  867.         <xsl:attribute name="style">display:block;</xsl:attribute>
  868.         <xsl:attribute name="id">update_<xsl:number level="single" count="update" format="1" /></xsl:attribute>
  869.         
  870.         <xsl:element name="td">
  871.             <xsl:attribute name="valign">top</xsl:attribute>
  872.             <xsl:attribute name="style">padding-right:10px;</xsl:attribute>
  873.             <xsl:attribute name="class">normalbig</xsl:attribute>
  874.                 <xsl:element name="a">
  875.                     <xsl:attribute name="href">javascript:window.external.GotoUpdate(<xsl:value-of select="update_id" />);</xsl:attribute>
  876.                     <xsl:if test="@new">
  877.                         <b><xsl:value-of select="name"/></b>
  878.                     </xsl:if>
  879.                     <xsl:if test="not(@new)">
  880.                         <xsl:value-of select="name"/>
  881.                     </xsl:if>
  882.                 </xsl:element>    
  883.         </xsl:element>
  884.         
  885.         <xsl:element name="td">
  886.             <xsl:attribute name="valign">top</xsl:attribute>
  887.             <xsl:attribute name="class">normalbig</xsl:attribute>
  888.             <xsl:element name="a">
  889.                 <xsl:attribute name="href">javascript:window.external.GotoUpdate(<xsl:value-of select="update_id" />);</xsl:attribute>
  890.                 
  891.                     <xsl:if test="@new">
  892.                         <b><xsl:value-of select="version"/></b>
  893.                     </xsl:if>
  894.                     <xsl:if test="not(@new)">
  895.                         <xsl:value-of select="version"/>
  896.                     </xsl:if>
  897.                 
  898.                 
  899.             </xsl:element>    
  900.         </xsl:element>
  901.     
  902.  
  903.             
  904.     </xsl:element>
  905.     
  906.     
  907. </xsl:template>
  908.  
  909.  
  910.  
  911. </xsl:stylesheet>
  912.